#ifndef __GLOBAL_H__
#define __GLOBAL_H__

#include <signal.h>
#include "logic_socket.h"
#include "thread_pool.h"

//配置项目结构体
typedef struct _ConfItem {
	char item_name[50];
	char item_content[500];
}ConfItem, *LPConfItem;

//日志相关
typedef struct {
	int log_level;
	int fd;
}log_t;

//外部全局变量声明

extern log_t my_log;
extern pid_t current_pid;
extern pid_t parent_pid;
extern int   stop_event; 


extern size_t argv_need_mem;
extern size_t env_need_mem;
extern int    os_argc;
extern char** os_argv;
extern char*  env_mem;
extern int    daemonized;



extern int    process;
extern sig_atomic_t reap;

//进程相关
extern LogicSocket my_socket;
extern ThreadPool thread_pool;
#endif
